package com.hyz.controller.repositoryManager;

import com.hyz.pojo.assetInbound.AssetInbound;
import com.hyz.service.repositoryManager.RepositoryManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author HGD
 * @date 2022/10/2 0:37
 */
@RestController
@RequestMapping("/log")
public class RepositoryManagerController {
    @Autowired
    private RepositoryManagerService repositoryManagerService;

    @PostMapping("/getAssetInboundByRepositoryId")
    List<AssetInbound> getAssetInboundByRepositoryIds(@RequestBody List<Long> repositoryIds) {
        return repositoryManagerService.getAssetInboundByRepositoryIds(repositoryIds);
    }
}
